Previous topicNext topic
Help > Debugging PB/Win Programs >
Debugger Toolbar Buttons

NewFile

Create a new empty document (file) in the editor.

OpenFile

Use the Open File dialog box to load an existing document.

PrintFile

Print the current document to a printer.

Copy

Copy the selected text from the document to the clipboard.

Find

Search the current document for a word or phrase. See Find dialog for more information.

GotoLine

Launch the Go to Line dialog to jump to a specific line in the current document.

CodeFinderBtn

Launch the Code Finder dialog, which presents a list of Subs, Functions, Methods, Properties, and Macros in current document, to quickly jump to a selected section of code.

Execute

Begin running the program. It will continue to run until the debugger either encounters a breakpoint, or runs out of code to execute. F5 is the hot-key for the Run option.

Animate

The debugger runs the program using an automated Step-Into technique. Execution continues until a breakpoint is reached, the Stop button is pressed, or the program completes. The Animate delay can be set through the IDE's Options Dialog.

StepOver

The debugger executes the current line of code. If the line contains a reference to a Sub, Function, Method, or Property, the debugger executes that code without tracing into the procedure. SHIFT+F8 is the Step Over hot-key.

StepInto

If the current line contains a call to a Sub, Function, Method, or Property, the debugger traces execution into that procedure. You cannot step into an API call, or into an external module. F8 is the Step Into hot-key.

StepOut

The debugger runs the code until the current Sub, Function, Method, or Property exits. If the current function is PBMAIN or WINMAIN, the code is executed until the program is finished or another breakpoint is encountered. CTRL+SHIFT+F8 is the Step Out hot-key.

Stop

Halt the debugger. If the debugger is already halted, this has no effect.

CPU

Show or hide the Register Watcher window, which lets you see the state of the CPU registers and flags when debugging.

 

VarWatcher

Show or hide the Variable Watcher window, which lets you see the state of the ERR function and any variables you choose to watch when debugging.

ExitDebug

Halts the current program and terminates the debugger. The variable list in the Watch window is retained between debugging sessions, until the IDE is closed.

Website

Launches the PowerBASIC web site.

Help

Display the PowerBASIC or the WIN32.HLP file.